﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarriorRush.GameDynamics.SpecialAbilities
{
    public class BasicSelfBoost :SpecialAbility
    {
        public BasicSelfBoost() 
            : base()
        {
            
        }

        public override bool Execute(CharacterClass abilityTarget, Arena arena, List<CharacterClass> additonalTargets)
        {

            AbilityOwner.TakeEffects(Effect, null);
            return base.Execute(abilityTarget, arena, additonalTargets);
        }

        public override SpecialAbility GetInstance(int power)
        {
            return new BasicSelfBoost()
            {
                Power = power,
                ReplacesAttack = this.ReplacesAttack,
                ShortName = ShortName,
                Description = Description,
                Effect = Effect != null ? Effect.GetInstance(Power) : null,
                AbilityType = AbilityType,
                EfType = EfType
            };
        }
    }
}
